<template>
  <div class="settlement">
    <div class="settlement-content">
      <CartSettlement v-if="route.path === '/settlement'" :query="route.query" />

      <AfterSale v-else />
    </div>

  </div>
</template>
<script setup>
import { useRoute } from 'vue-router'
import CartSettlement from './components/cartSettlement.vue'
import AfterSale from './components/afterSale.vue'

const route = useRoute()
</script>
